<template>
  <div>
    <div class="coupon_card">
      <div class="top">
        <div class="left_wrapper">
          <div class="title_wrapper">
            <div class="text">加油复购券</div>
            <Tag color="orange" type="border">即将到期</Tag>
          </div>
          <div class="desc">适用于团油部分合作加油站</div>
          <div class="deadline">
            有效期至2020.0828 00:00:00 - 2020.08.30 23:59:59
          </div>
        </div>
        <div class="right_wrapper">
          <div class="price">8.07</div>
          <div class="desc">满200元可以使用</div>
        </div>
      </div>
      <Divider type="horizontal" dashed />
      <div class="bottom">
        <Tag color="orange" type="border" size="“default”">查看可用加油站</Tag>
      </div>

      <div class="tag">
        <span class="text">NEW</span>
      </div>
      <div class="small_trangle"></div>
      <div class="large_trangle"></div>
    </div>
    <div class="notice">- 已经到底咯 -</div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="stylus" scoped>
.coupon_card {
  position: relative;
  margin-top: 15px;
  padding: 25px 15px 15px 20px;
  font-size: 18px;
  box-shadow: 0 0 15px rgba(192, 192, 192, 0.3);

  .top {
    display: flex;

    .left_wrapper {
      .title_wrapper {
        display: flex;

        .text {
          margin-right: 5px;
          z-index: 1000;
        }
      }

      .desc {
        font-size: 12px;
        color: #bbbbbb;
      }

      .deadline {
        font-size: 12px;
        color: #bbbbbb;
      }
    }

    .right_wrapper {
      text-align: center;

      .price {
        font-size: 26px;
        font-weight: 800;
        color: red;
      }

      .desc {
        font-size: 12px;
        color: #bbbbbb;
      }
    }
  }

  .bottom {
    display: flex;
    justify-content: flex-end;

    ivu-tag {
      margin-bottom: 10px;
    }
  }

  .tag {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    background: orange;

    .text {
      display: block;
      font-size: 12px;
      transform: rotate(-45deg);
      color: #ffffff;
    }
  }

  .small_trangle {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 0;
    height: 0;
    border-top: 20px solid #ffffff;
    border-right: 20px solid rgba(238, 238, 238, 0);
  }

  .large_trangle {
    position: absolute;
    top: 1px;
    left: 1px;
    border-bottom: 50px solid #ffffff;
    border-left: 50px solid transparent;
  }
}

.notice {
  margin-top: 8px;
  text-align: center;
  font-size: 16px;
  color: #bbbbbb;
}
</style>
